<?php
/**
 * Abstract.php
 *
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */

/**
 * Madoqua_View_Helper_Abstract
 * 
 * 
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */
abstract class Madoqua_View_Helper_Abstract {
    
    /**
     * the view object
     *
     * @var Zend_View
     */
    protected $_view;
    
    /**
     * set the view
     *
     * @param Zend_View $view
     */
    public function setView($view) {
        $this->_view = $view;
    }
    
    /**
     * call a helper directly on the view
     *
     * @param string $name
     * @param arrat $arguments
     * @return mixed
     */
    public function __call($name, $arguments) {
        return call_user_func_array(array($this->_view, $name), $arguments);
    }
}
